package com.example.demo.controller;

import com.example.demo.fegin.ProviderFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController("/user")
public class UserController {

    @Autowired
    private ProviderFeignService providerFeignService;

    @PostMapping("/userCreateOrder")
    public String userCreateOrder(){
        HashMap<String, Object> objectObjectHashMap = new HashMap<>();
        providerFeignService.postData(objectObjectHashMap);
        return "SUCCESS";
    }
}
